package com.api.utils;

import com.mybatisflex.core.paginate.Page;
import lombok.Data;

import java.util.Collections;
import java.util.List;

/**
 * @Author: yangsf
 * @CreateDate: 2025/1/17
 */

@Data
public class PageUtil<T> extends Page {

    private List<String> btns = Collections.emptyList();

    public PageUtil(Page page, List<String> btns) {
        this.setRecords(page.getRecords());
        this.setPageNumber(page.getPageNumber());
        this.setPageSize(page.getPageSize());
        this.setTotalRow(page.getTotalRow());
        this.btns = btns;
    }
}
